{include file = $admin_header1}
{include file = $admin_header2}
{include file = $admin_leftsidebar}

<div class="holdthisTop">


<div class="middel_panel">
		<h1 class="type2">Manage Testimonial</h1>
		
		<div class="holdthisTop">
		<form name="frmAction" method="post" action="{$site_path}/admin/testimonial/update_testimonial_action" id="frmAction">
		<input type="hidden" id="sorttype" value="" />
		<input type="hidden" id="sortord" value="" />
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
					<td align="left">&nbsp;</td>
			</tr>
			<tr>
					<td align="left">
							<img src="{$site_images_path}/icons/add.png" align="top"  alt="add" />&nbsp;
							<a href="{$site_path}/admin/testimonial/add/" rel ="contentarea">Add Testimonial</a>

					</td>
			</tr>
			<tr>
					<td align="left">&nbsp;</td>
			</tr>
		</table>
		{if 0 lt $success_messages|@count}
			{foreach item=success_message from=$success_messages}
				<div align="center" class=successMsg>{$success_message}</div>
			{/foreach}
		{/if}
		<div id="PortListDiv">
		<table width="100%" cellpadding="3" cellspacing="2">
  		<tr>
    		<td width="100%" valign="top" align="center" colspan="2">
       		<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="datagrid">

					<tr class="headbg">
						<td width="1%" align="center"><input type="checkbox" id="checkall" /></td>
						<th width="20%"><a href="{sortorder sorttype='title' sortord=$ord}"> Title</a></th>
					<th width="20%"><a href="{sortorder sorttype='module' sortord=$ord}"> Description</a></th>
						<th width="15%" align="center">Action</th>
					</tr>
					{if 0 lt $testimonials|@count}
         			{foreach item=testimonial from=$testimonials}
					<tr class="grayback" id="tr_{$testimonial->getId()}">
						<td align="center" valign="top"><input type="checkbox" name="testimonial[id][]" value="{$testimonial->getId()}" /></td>
						<td align="left" valign="top">{$testimonial->getTitle()|ucfirst}</td>
						<td align="left" valign="top">{$testimonial->getDescription()|truncate:150}</td>
						<td align="center" valign="top">
							<img src="{$site_images_path}/icons/application_edit.png" align="top" alt="" /> 
							<a href="{$site_path}/admin/testimonial/edit/id/{$testimonial->getId()}" class="admintxt"><strong>Edit</strong></a>
							 | <img src="{$site_images_path}/icons/film.png" align="top" alt="view" /> 
							 <a href="{$site_path}/admin/testimonial/view/id/{$testimonial->getId()}" class="frmtxt">View</a>
							 
						</td>
					</tr>
					{/foreach}
					{else}	<tr>
							<td colspan="4" align="center">
								<strong>No records found.</strong>
							</td>
						</tr>
					{/if}
					<tr>
					<td align="right"><img src="{$site_images_path}/admin/arrow_ltr.gif" alt="" /></td>
					<td colspan="3" align="left">
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr>
							<td width="10%">
								<select name="testimonial[action]" id="action">
									<option value="">--Action--</option>
									<option value="delete">Delete</option>
									<option value="1">Active</option>
									<option value="0">Inactive</option>
								</select>
							</td>
							<td align="left" width="6%"><span class="buttons"><input type="submit" name="submit" id="submit" value="Go" /></span></td>
						<td><span id="acterr" class="error"></span></td><td colspan="3" align="right">{if $pgnation}{$pgnation}{/if}</td>
					</tr>					
				</table></td>
			</tr>
		</table>
      </form>

</table>
</div>
		</div>
	<!--middel panel ends -->
</div>
                  <!--main content ends -->
                  <!--content ends -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
    <!--Banner ends -->
  </div>
		</div>
  <!--    content area ends -->
<!--<script type="text/javascript">searchUser({$smarty.get.page});</script>-->
{include file = $admin_footer}